/* 使页面填满整个视口 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Container for centering the boxes */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Styling the login box */
.login-box, .register-box {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Styling the title (北化论坛) */
h1 {
    font-size: 2.5em;
    color: #3f8efc;
    margin-bottom: 20px;
}

/* Styling the subtitle (用户登录 or 用户注册) */
h2 {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 30px;
}

/* Styling input fields */
.input-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Focus state for inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3f8efc;
}

/* Styling the button */
.btn {
    background-color: #3f8efc;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover state for the button */
.btn:hover {
    background-color: #3079d9;
}

/* Styling the link for register or login */
.toggle {
    margin-top: 20px;
    font-size: 1em;
    color: #555;
}

.toggle span {
    font-size: 1em;
}

.toggle a {
    color: #3f8efc;
    text-decoration: none;
}

.toggle a:hover {
    text-decoration: underline;
}
